package com.qf.fmall2202.shopcart.service;

import com.qf.fmall2202.shopcart.entity.ShoppingCart;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qf.fmall2202.vo.ResultVo;

import java.util.List;

/**
 * <p>
 * 购物车  服务类
 * </p>
 *
 * @author 徐英海
 * @since 2022-11-08
 */
public interface ShoppingCartService extends IService<ShoppingCart> {

    ResultVo queryList(Integer userId);

    ResultVo addToShoppingCart(ShoppingCart shoppingCart);

    ResultVo updateCartNumByCartId(Integer cartId, Integer cartNum);

    ResultVo listbycids(String cids);

    List<ShoppingCart> splitCidsToList(String cids);
}
